// projectile.cpp

#include "projectile.h"

projectile::projectile()
{
}


// projectile objects below
//ball object

ball::ball()
{
    balltype = balls;
}

void ball::drawprojectile(QPainter &painter)
{
    // init pen
    QPen pen;
    pen.setWidth(2);

    // setting the filled in color for the object
    painter.setPen(Qt::NoPen);
    painter.setBrush(Qt::yellow);
    painter.drawEllipse(ReturnCenterPoint(), ReturnRadius(), ReturnRadius());

    // setting the outline color for the object
    painter.setPen(pen);
    painter.setBrush(Qt::NoBrush);
    painter.drawEllipse(ReturnCenterPoint(), ReturnRadius(), ReturnRadius());

}
